package csd.wyaiyr.com.config;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class QueryPage {

//    当前页

    @Schema(name = "pageNum",description = "当前页,默认值=1",defaultValue = "1",requiredMode = Schema.RequiredMode.REQUIRED)
    private int pageNum = 1;

//  每页显示数量

    @Schema(name = "pageSize",description = "每页数量，默认值=10",defaultValue = "10",requiredMode = Schema.RequiredMode.REQUIRED)
    private int pageSize = 10;


//    是否需要分页查询

    @Schema(name = "isNeedPage",description = "是否需要分页查询：默认值=true",defaultValue = "true",requiredMode = Schema.RequiredMode.REQUIRED)
    private String isNeedPage = "true";


}
